package 设计模式.proxy.staticproxy;

import com.atguigu.principle.facade.TheaterLight;

public class TeacherDaoProxy implements ITeacherDao{
    private ITeacherDao target;

    public TeacherDaoProxy(ITeacherDao iTeacherDao){
        this.target=iTeacherDao;
    }
    @Override
    public void teach() {
        System.out.println("开始代理》》》》》");
        target.teach();
        System.out.println("结束代理》》》》》");
    }
}
